package com.qdu.service;

import com.qdu.entity.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminService {

    List<Admin> getAll();

    Admin getOneByAid(String id);

    Admin getOneByName(String name);

    int addAdmin(Admin admin);

    int deleteAdmin(String id);

    int updateAdmin(Admin admin);

    // 分页查询
    List<Admin> getAdminByPage(@Param("start") Integer start, @Param("rows") Integer rows);

    // 查询总条数
    Long findTotals();
}
